/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gnupostgressqldesigner.window.mainwindow;

import gnupostgressqldesigner.window.WindowView;
import javax.swing.*;

/**
 *
 * @author juliano
 */
public class MainWindowView extends WindowView
{

    private JMenu jMenuFile;
    private JMenu jMenuEdit;
    private JMenu jMenuAbout;
    private JMenuBar jMenuBarMain;
    private JMenuItem jMenuItemOpen;
    private JMenuItem jMenuItemNew;
    private JMenuItem jMenuItemOut;
    // End of variables declaration

    public MainWindowView(MainWindow controller)
    {
        super(controller);
        open();
        setVisible(true);
    }


     protected void open()
     {
        
        jMenuFile = new JMenu();
        jMenuEdit = new JMenu();
        jMenuAbout = new JMenu();

        jMenuBarMain = new JMenuBar();
        jMenuItemOpen = new JMenuItem();
        jMenuItemNew = new JMenuItem();
        jMenuItemOut = new JMenuItem();



        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("GNU PostgresSQL Designer"); 
        setResizable(false);

        jMenuBarMain.setName("jMenuBar1");

        jMenuFile.setText("Arquivo");
        jMenuFile.setName("Arquivo");

        jMenuItemOpen.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItemOpen.setText("Abrir");
        jMenuItemOpen.setName("Abrir");
        jMenuFile.add(jMenuItemOpen);

        jMenuItemNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItemNew.setText("Novo");
        jMenuItemNew.setName("Novo");
        jMenuFile.add(jMenuItemNew);

        jMenuItemOut.setText("Sair");
        jMenuItemOut.setName("Sair");
        jMenuFile.add(jMenuItemOut);

        jMenuBarMain.add(jMenuFile);

        jMenuEdit.setText("Editar");
        jMenuEdit.setName("Editar");
        jMenuBarMain.add(jMenuEdit);

        jMenuAbout.setText("Sobre");
        jMenuAbout.setName("Sobre");
        jMenuBarMain.add(jMenuAbout);

        setJMenuBar(jMenuBarMain);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 799, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 578, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>
}
